# -*- coding: mbcs -*-
#
# Abaqus/CAE Release 2020 replay file
# Internal Version: 2019_09_14-01.49.31 163176
# Run by Administrator on Tue Apr 16 11:38:35 2024
#

# from driverUtils import executeOnCaeGraphicsStartup
# executeOnCaeGraphicsStartup()
#: Executing "onCaeGraphicsStartup()" in the site directory ...
from abaqus import *
from abaqusConstants import *
session.Viewport(name='Viewport: 1', origin=(0.0, 0.0), width=117.578125, 
    height=134.273147583008)
session.viewports['Viewport: 1'].makeCurrent()
session.viewports['Viewport: 1'].maximize()
from caeModules import *
from driverUtils import executeOnCaeStartup
executeOnCaeStartup()
mdb.saveAs(
    pathName='C:/Users/Administrator/Documents/learnFEM/Matlb Fea Codes repo/fea-codes-of-matlab/chapter04/problem4/abaqus/problem4')
#: The model database has been saved to "C:\Users\Administrator\Documents\learnFEM\Matlb Fea Codes repo\fea-codes-of-matlab\chapter04\problem4\abaqus\problem4.cae".
s = mdb.models['Model-1'].ConstrainedSketch(name='__profile__', sheetSize=20.0)
g, v, d, c = s.geometry, s.vertices, s.dimensions, s.constraints
s.setPrimaryObject(option=STANDALONE)
s.Line(point1=(0.0, 0.0), point2=(0.0, 10.0))
s.VerticalConstraint(entity=g[2], addUndoState=False)
session.viewports['Viewport: 1'].view.setValues(nearPlane=9.385, 
    farPlane=28.3274, width=55.0051, height=26.7029, cameraPosition=(8.17317, 
    2.28999, 18.8562), cameraTarget=(8.17317, 2.28999, 0))
s.Line(point1=(0.0, 0.0), point2=(10.0, 0.0))
s.HorizontalConstraint(entity=g[3], addUndoState=False)
s.PerpendicularConstraint(entity1=g[2], entity2=g[3], addUndoState=False)
session.viewports['Viewport: 1'].view.setValues(nearPlane=15.7527, 
    farPlane=21.9597, width=18.0241, height=8.75, cameraPosition=(9.47575, 
    7.48371, 18.8562), cameraTarget=(9.47575, 7.48371, 0))
s.Line(point1=(0.0, 0.0), point2=(10.0, 10.0))
session.viewports['Viewport: 1'].view.setValues(nearPlane=18.0426, 
    farPlane=19.6697, width=4.72491, height=2.29376, cameraPosition=(7.78111, 
    7.23855, 18.8562), cameraTarget=(7.78111, 7.23855, 0))
p = mdb.models['Model-1'].Part(name='Part-1', dimensionality=TWO_D_PLANAR, 
    type=DEFORMABLE_BODY)
p = mdb.models['Model-1'].parts['Part-1']
p.BaseWire(sketch=s)
s.unsetPrimaryObject()
p = mdb.models['Model-1'].parts['Part-1']
session.viewports['Viewport: 1'].setValues(displayedObject=p)
del mdb.models['Model-1'].sketches['__profile__']
session.viewports['Viewport: 1'].view.setValues(nearPlane=22.853, 
    farPlane=33.7155, width=34.1321, height=16.5698, viewOffsetX=7.5211, 
    viewOffsetY=0.909211)
session.viewports['Viewport: 1'].partDisplay.setValues(mesh=ON)
session.viewports['Viewport: 1'].partDisplay.meshOptions.setValues(
    meshTechnique=ON)
session.viewports['Viewport: 1'].partDisplay.geometryOptions.setValues(
    referenceRepresentation=OFF)
p = mdb.models['Model-1'].parts['Part-1']
p.seedPart(size=1.4, deviationFactor=0.1, minSizeFactor=0.1)
p = mdb.models['Model-1'].parts['Part-1']
p.generateMesh()
session.viewports['Viewport: 1'].partDisplay.setValues(renderBeamProfiles=ON)
session.viewports['Viewport: 1'].view.setValues(nearPlane=25.062, 
    farPlane=31.5065, width=19.1649, height=9.33403, viewOffsetX=2.70582, 
    viewOffsetY=-0.0591769)
session.viewports['Viewport: 1'].partDisplay.setValues(sectionAssignments=ON, 
    engineeringFeatures=ON, mesh=OFF)
session.viewports['Viewport: 1'].partDisplay.meshOptions.setValues(
    meshTechnique=OFF)
mdb.models['Model-1'].Material(name='Material-1')
mdb.models['Model-1'].materials['Material-1'].Elastic(table=((30000000.0, 0.3), 
    ))
mdb.models['Model-1'].TrussSection(name='Section-1', material='Material-1', 
    area=2.0)
session.viewports['Viewport: 1'].view.setValues(nearPlane=22.2741, 
    farPlane=34.2945, width=52.1493, height=25.3165, viewOffsetX=16.4587, 
    viewOffsetY=2.46053)
p = mdb.models['Model-1'].parts['Part-1']
e = p.edges
edges = e.getSequenceFromMask(mask=('[#7 ]', ), )
region = p.Set(edges=edges, name='Set-1')
p = mdb.models['Model-1'].parts['Part-1']
p.SectionAssignment(region=region, sectionName='Section-1', offset=0.0, 
    offsetType=MIDDLE_SURFACE, offsetField='', 
    thicknessAssignment=FROM_SECTION)
session.viewports['Viewport: 1'].view.setValues(nearPlane=25.6357, 
    farPlane=30.9328, width=15.7338, height=7.63817, viewOffsetX=0.428149, 
    viewOffsetY=-2.36222)
session.viewports['Viewport: 1'].view.setValues(nearPlane=25.7799, 
    farPlane=31.3823, width=15.8223, height=7.68112, cameraPosition=(4.74253, 
    1.67886, 28.3896), cameraUpVector=(-0.164117, 0.980032, 0.112262), 
    cameraTarget=(4.57868, 4.87062, 0.286519), viewOffsetX=0.430557, 
    viewOffsetY=-2.37551)
session.viewports['Viewport: 1'].view.setValues(nearPlane=23.9671, 
    farPlane=35.4519, width=14.7097, height=7.14099, cameraPosition=(11.1906, 
    -9.42842, 25.2264), cameraUpVector=(-0.0678758, 0.854782, 0.514529), 
    cameraTarget=(4.90301, 4.4251, 1.38221), viewOffsetX=0.400281, 
    viewOffsetY=-2.20847)
session.viewports['Viewport: 1'].view.setValues(nearPlane=23.0309, 
    farPlane=36.3881, width=27.6077, height=13.4025, viewOffsetX=3.4699, 
    viewOffsetY=-0.759883)
session.viewports['Viewport: 1'].view.setValues(nearPlane=16.2695, 
    farPlane=37.3493, width=19.5027, height=9.4678, cameraPosition=(-13.8345, 
    -13.3908, 5.43694), cameraUpVector=(-0.13082, 0.423011, 0.896631), 
    cameraTarget=(4.60566, 6.91857, -1.45416), viewOffsetX=2.45121, 
    viewOffsetY=-0.536798)
session.viewports['Viewport: 1'].view.setValues(nearPlane=17.2163, 
    farPlane=36.4314, width=20.6377, height=10.0188, cameraPosition=(-13.3965, 
    -13.4662, 6.6307), cameraUpVector=(-0.117063, 0.458508, 0.880946), 
    cameraTarget=(4.51739, 6.83388, -1.55448), viewOffsetX=2.59386, 
    viewOffsetY=-0.568037)
session.viewports['Viewport: 1'].view.setValues(nearPlane=20.8667, 
    farPlane=35.2432, width=25.0136, height=12.1431, cameraPosition=(9.51359, 
    -12.702, 21.3813), cameraUpVector=(0.450052, 0.727655, 0.51766), 
    cameraTarget=(3.36803, 5.7249, 0.82215), viewOffsetX=3.14385, 
    viewOffsetY=-0.68848)
session.viewports['Viewport: 1'].view.setValues(nearPlane=21.4886, 
    farPlane=31.5639, width=25.7591, height=12.5051, cameraPosition=(3.93822, 
    12.3131, 25.6055), cameraUpVector=(-0.132675, 0.952921, -0.272651), 
    cameraTarget=(2.34397, 4.33994, -1.48484), viewOffsetX=3.23756, 
    viewOffsetY=-0.709001)
session.viewports['Viewport: 1'].view.setValues(nearPlane=19.9843, 
    farPlane=32.6681, width=23.9559, height=11.6297, cameraPosition=(-4.84874, 
    -2.5776, 23.3524), cameraUpVector=(-0.15917, 0.955522, 0.24828), 
    cameraTarget=(3.08476, 5.48027, -2.57302), viewOffsetX=3.01092, 
    viewOffsetY=-0.659368)
session.viewports['Viewport: 1'].view.setValues(nearPlane=22.191, 
    farPlane=31.62, width=26.6013, height=12.9139, cameraPosition=(8.04471, 
    3.67181, 26.8275), cameraUpVector=(0.0773965, 0.995479, 0.0550598), 
    cameraTarget=(2.22316, 5.65134, -0.78022), viewOffsetX=3.3434, 
    viewOffsetY=-0.732178)
a = mdb.models['Model-1'].rootAssembly
session.viewports['Viewport: 1'].setValues(displayedObject=a)
session.viewports['Viewport: 1'].assemblyDisplay.setValues(
    optimizationTasks=OFF, geometricRestrictions=OFF, stopConditions=OFF)
a = mdb.models['Model-1'].rootAssembly
a.DatumCsysByDefault(CARTESIAN)
p = mdb.models['Model-1'].parts['Part-1']
a.Instance(name='Part-1-1', part=p, dependent=ON)
session.viewports['Viewport: 1'].assemblyDisplay.setValues(
    adaptiveMeshConstraints=ON)
mdb.models['Model-1'].StaticStep(name='Step-1', previous='Initial', 
    initialInc=0.1, maxInc=0.2)
session.viewports['Viewport: 1'].assemblyDisplay.setValues(step='Step-1')
#: The contents of viewport "Viewport: 1" have been copied to the clipboard.
session.viewports['Viewport: 1'].assemblyDisplay.setValues(loads=ON, bcs=ON, 
    predefinedFields=ON, connectors=ON, adaptiveMeshConstraints=OFF)
session.viewports['Viewport: 1'].view.setValues(nearPlane=23.3001, 
    farPlane=33.2685, width=43.4997, height=21.1174, viewOffsetX=5.29641, 
    viewOffsetY=-2.77394)
a = mdb.models['Model-1'].rootAssembly
v1 = a.instances['Part-1-1'].vertices
verts1 = v1.getSequenceFromMask(mask=('[#2 ]', ), )
region = a.Set(vertices=verts1, name='Set-1')
mdb.models['Model-1'].ConcentratedForce(name='Load-1', createStepName='Step-1', 
    region=region, cf2=-10000.0, distributionType=UNIFORM, field='', 
    localCsys=None)
session.viewports['Viewport: 1'].view.setValues(nearPlane=22.3005, 
    farPlane=34.268, width=52.0421, height=25.2644, viewOffsetX=6.24523, 
    viewOffsetY=0.488999)
a = mdb.models['Model-1'].rootAssembly
v1 = a.instances['Part-1-1'].vertices
verts1 = v1.getSequenceFromMask(mask=('[#d ]', ), )
region = a.Set(vertices=verts1, name='Set-2')
mdb.models['Model-1'].EncastreBC(name='BC-1', createStepName='Step-1', 
    region=region, localCsys=None)
session.viewports['Viewport: 1'].assemblyDisplay.setValues(mesh=ON, loads=OFF, 
    bcs=OFF, predefinedFields=OFF, connectors=OFF)
session.viewports['Viewport: 1'].assemblyDisplay.meshOptions.setValues(
    meshTechnique=ON)
p = mdb.models['Model-1'].parts['Part-1']
session.viewports['Viewport: 1'].setValues(displayedObject=p)
session.viewports['Viewport: 1'].partDisplay.setValues(sectionAssignments=OFF, 
    engineeringFeatures=OFF, mesh=ON)
session.viewports['Viewport: 1'].partDisplay.meshOptions.setValues(
    meshTechnique=ON)
session.viewports['Viewport: 1'].view.setValues(nearPlane=18.3203, 
    farPlane=35.5211, width=53.6165, height=26.1133, viewOffsetX=14.7977, 
    viewOffsetY=2.05417)
elemType1 = mesh.ElemType(elemCode=B21, elemLibrary=STANDARD)
p = mdb.models['Model-1'].parts['Part-1']
e = p.edges
edges = e.getSequenceFromMask(mask=('[#7 ]', ), )
pickedRegions =(edges, )
p.setElementType(regions=pickedRegions, elemTypes=(elemType1, ))
a1 = mdb.models['Model-1'].rootAssembly
a1.regenerate()
a = mdb.models['Model-1'].rootAssembly
session.viewports['Viewport: 1'].setValues(displayedObject=a)
session.viewports['Viewport: 1'].assemblyDisplay.setValues(mesh=OFF)
session.viewports['Viewport: 1'].assemblyDisplay.meshOptions.setValues(
    meshTechnique=OFF)
mdb.save()
#: The model database has been saved to "C:\Users\Administrator\Documents\learnFEM\Matlb Fea Codes repo\fea-codes-of-matlab\chapter04\problem4\abaqus\problem4.cae".
mdb.Job(name='Job-1', model='Model-1', description='', type=ANALYSIS, 
    atTime=None, waitMinutes=0, waitHours=0, queue=None, memory=90, 
    memoryUnits=PERCENTAGE, getMemoryFromAnalysis=True, 
    explicitPrecision=SINGLE, nodalOutputPrecision=SINGLE, echoPrint=OFF, 
    modelPrint=OFF, contactPrint=OFF, historyPrint=OFF, userSubroutine='', 
    scratch='', resultsFormat=ODB, multiprocessingMode=DEFAULT, numCpus=1, 
    numGPUs=0)
mdb.jobs['Job-1'].submit(consistencyChecking=OFF)
#: The job input file "Job-1.inp" has been submitted for analysis.
session.viewports['Viewport: 1'].view.setValues(nearPlane=22.854, 
    farPlane=33.7145, width=34.1336, height=16.5705, viewOffsetX=4.18656, 
    viewOffsetY=0.424933)
session.viewports['Viewport: 1'].view.setProjection(projection=PARALLEL)
#: Error in job Job-1: 24 elements have missing property definitions. The elements have been identified in element set ErrElemMissingSection.
#: Job Job-1: Analysis Input File Processor aborted due to errors.
#: Error in job Job-1: Analysis Input File Processor exited with an error.
#: Job Job-1 aborted due to errors.
session.viewports['Viewport: 1'].partDisplay.setValues(sectionAssignments=ON, 
    engineeringFeatures=ON, mesh=OFF)
session.viewports['Viewport: 1'].partDisplay.meshOptions.setValues(
    meshTechnique=OFF)
p = mdb.models['Model-1'].parts['Part-1']
session.viewports['Viewport: 1'].setValues(displayedObject=p)
session.viewports['Viewport: 1'].view.setValues(nearPlane=21.7695, 
    farPlane=32.0719, width=16.7557, height=8.13426, viewOffsetX=3.36503, 
    viewOffsetY=-2.33455)
session.viewports['Viewport: 1'].view.setValues(nearPlane=22.2365, 
    farPlane=32.1936, width=17.1152, height=8.30877, cameraPosition=(1.69633, 
    -3.38505, 25.8827), cameraUpVector=(-0.0326117, 0.949331, 0.312581), 
    cameraTarget=(2.10679, 5.47248, -0.975624), viewOffsetX=3.43722, 
    viewOffsetY=-2.38464)
session.viewports['Viewport: 1'].partDisplay.setValues(renderBeamProfiles=OFF)
session.viewports['Viewport: 1'].view.setValues(nearPlane=20.6715, 
    farPlane=33.832, width=31.0755, height=15.086, viewOffsetX=7.83155, 
    viewOffsetY=0.290612)
session.viewports['Viewport: 1'].view.setValues(nearPlane=10.9987, 
    farPlane=32.8726, width=16.5343, height=8.02676, cameraPosition=(-12.9906, 
    -7.99096, 4.25302), cameraUpVector=(-0.251632, 0.684306, 0.684402), 
    cameraTarget=(5.98391, 9.91387, -6.67311), viewOffsetX=4.16692, 
    viewOffsetY=0.154625)
session.viewports['Viewport: 1'].view.setValues(nearPlane=15.8515, 
    farPlane=30.0553, width=23.8295, height=11.5683, cameraPosition=(-8.00682, 
    -6.22324, 16.1189), cameraUpVector=(0.113185, 0.797789, 0.592218), 
    cameraTarget=(1.90977, 8.64388, -5.80425), viewOffsetX=6.00542, 
    viewOffsetY=0.222848)
session.viewports['Viewport: 1'].view.setValues(width=18.3879, height=8.92664, 
    viewOffsetX=4.97926, viewOffsetY=0.207486)
session.viewports['Viewport: 1'].view.setValues(nearPlane=17.726, 
    farPlane=29.542, width=21.3179, height=10.349, cameraPosition=(-1.66514, 
    -8.8989, 18.704), cameraUpVector=(0.147031, 0.789334, 0.596098), 
    cameraTarget=(-0.109762, 7.9356, -3.97144), viewOffsetX=5.77268, 
    viewOffsetY=0.240548)
session.viewports['Viewport: 1'].view.setValues(nearPlane=15.8017, 
    farPlane=34.3477, width=19.0037, height=9.22556, cameraPosition=(9.22448, 
    -19.4464, 6.82463), cameraUpVector=(0.17531, 0.312098, 0.933735), 
    cameraTarget=(-1.53102, 5.9043, 0.370543), viewOffsetX=5.14601, 
    viewOffsetY=0.214435)
session.viewports['Viewport: 1'].view.setValues(nearPlane=16.9596, 
    farPlane=31.6672, width=20.3962, height=9.9016, cameraPosition=(2.57754, 
    -16.3228, 12.9234), cameraUpVector=(-0.163098, 0.557609, 0.813923), 
    cameraTarget=(-1.19019, 6.44506, -3.4297), viewOffsetX=5.5231, 
    viewOffsetY=0.230148)
session.viewports['Viewport: 1'].view.setValues(nearPlane=17.2572, 
    farPlane=32.5798, width=20.7541, height=10.0753, cameraPosition=(11.0818, 
    -9.23722, 20.4118), cameraUpVector=(0.0987671, 0.836808, 0.538514), 
    cameraTarget=(-1.82119, 5.44276, -0.0333977), viewOffsetX=5.62, 
    viewOffsetY=0.234186)
a = mdb.models['Model-1'].rootAssembly
session.viewports['Viewport: 1'].setValues(displayedObject=a)
session.viewports['Viewport: 1'].assemblyDisplay.setValues(
    adaptiveMeshConstraints=ON)
session.viewports['Viewport: 1'].assemblyDisplay.setValues(interactions=ON, 
    constraints=ON, connectors=ON, engineeringFeatures=ON, 
    adaptiveMeshConstraints=OFF)
session.viewports['Viewport: 1'].assemblyDisplay.setValues(mesh=ON, 
    interactions=OFF, constraints=OFF, connectors=OFF, engineeringFeatures=OFF)
session.viewports['Viewport: 1'].assemblyDisplay.meshOptions.setValues(
    meshTechnique=ON)
p = mdb.models['Model-1'].parts['Part-1']
session.viewports['Viewport: 1'].setValues(displayedObject=p)
session.viewports['Viewport: 1'].partDisplay.setValues(sectionAssignments=OFF, 
    engineeringFeatures=OFF, mesh=ON)
session.viewports['Viewport: 1'].partDisplay.meshOptions.setValues(
    meshTechnique=ON)
p = mdb.models['Model-1'].parts['Part-1']
p.deleteMesh()
p = mdb.models['Model-1'].parts['Part-1']
p.seedPart(size=2.0, deviationFactor=0.1, minSizeFactor=0.1)
p = mdb.models['Model-1'].parts['Part-1']
p.generateMesh()
#: 
#: Part: Part-1
#:  Line elements:  17
#:    Geometric deviation factor > 0.2:  0 (0%)
#:    Average geometric deviation factor:  2.79e-16,  Worst geometric deviation factor:  1.24e-15
#:   Number of elements :  17,   Analysis errors:  0 (0%),  Analysis warnings:  0 (0%)
session.viewports['Viewport: 1'].partDisplay.setValues(sectionAssignments=ON, 
    engineeringFeatures=ON, mesh=OFF)
session.viewports['Viewport: 1'].partDisplay.meshOptions.setValues(
    meshTechnique=OFF)
#: The contents of viewport "Viewport: 1" have been copied to the clipboard.
#: The contents of viewport "Viewport: 1" have been copied to the clipboard.
#: The contents of viewport "Viewport: 1" have been copied to the clipboard.
session.viewports['Viewport: 1'].view.setValues(nearPlane=20.3855, 
    farPlane=27.7324, width=24.5163, height=11.9017, cameraPosition=(-1.23797, 
    9.03891, 23.7048), cameraUpVector=(-0.0108211, 0.986518, -0.163294), 
    cameraTarget=(-1.1795, 4.42055, -4.19976), viewOffsetX=6.63878, 
    viewOffsetY=0.276639)
session.viewports['Viewport: 1'].view.setValues(nearPlane=18.2829, 
    farPlane=29.8351, width=42.9446, height=20.848, viewOffsetX=11.1251, 
    viewOffsetY=-0.00485837)
p = mdb.models['Model-1'].parts['Part-1']
e = p.edges
edges = e.getSequenceFromMask(mask=('[#7 ]', ), )
regions = p.Set(edges=edges, name='Set-3')
p.flipTangent(regions=regions)
session.viewports['Viewport: 1'].view.setValues(nearPlane=13.1608, 
    farPlane=29.4243, width=30.9133, height=15.0072, cameraPosition=(-7.95385, 
    3.68962, 18.2089), cameraUpVector=(0.132697, 0.961852, 0.239233), 
    cameraTarget=(1.05749, 8.98335, -8.07359), viewOffsetX=8.00828, 
    viewOffsetY=-0.00349726)
session.viewports['Viewport: 1'].view.setValues(nearPlane=14.0704, 
    farPlane=28.5147, width=33.0498, height=16.0444, cameraPosition=(-8.0675, 
    1.45401, 17.7196), cameraUpVector=(-0.0347116, 0.981958, 0.185884), 
    cameraTarget=(0.943841, 6.74774, -8.56285), viewOffsetX=8.56176, 
    viewOffsetY=-0.00373897)
p1 = mdb.models['Model-1'].parts['Part-1']
session.viewports['Viewport: 1'].setValues(displayedObject=p1)
#: The contents of viewport "Viewport: 1" have been copied to the clipboard.
session.viewports['Viewport: 1'].view.setValues(nearPlane=15.1685, 
    farPlane=28.0144, width=35.6292, height=17.2966, cameraPosition=(-7.38933, 
    3.01277, 18.7789), cameraUpVector=(-0.0430969, 0.996143, 0.0764341), 
    cameraTarget=(0.515812, 5.4302, -8.27034), viewOffsetX=9.22997, 
    viewOffsetY=-0.00403078)
session.viewports['Viewport: 1'].view.setValues(nearPlane=16.506, 
    farPlane=28.4177, width=38.7708, height=18.8218, cameraPosition=(-4.94124, 
    4.19856, 21.224), cameraUpVector=(0.0501653, 0.994757, 0.0891193), 
    cameraTarget=(-0.731208, 6.48353, -6.65166), viewOffsetX=10.0438, 
    viewOffsetY=-0.0043862)
#: The contents of viewport "Viewport: 1" have been copied to the clipboard.
#: The contents of viewport "Viewport: 1" have been copied to the clipboard.
mdb.save()
#: The model database has been saved to "C:\Users\Administrator\Documents\learnFEM\Matlb Fea Codes repo\fea-codes-of-matlab\chapter04\problem4\abaqus\problem4.cae".
a = mdb.models['Model-1'].rootAssembly
a.regenerate()
session.viewports['Viewport: 1'].setValues(displayedObject=a)
session.viewports['Viewport: 1'].assemblyDisplay.setValues(mesh=OFF)
session.viewports['Viewport: 1'].assemblyDisplay.meshOptions.setValues(
    meshTechnique=OFF)
mdb.jobs['Job-1'].submit(consistencyChecking=OFF)
#: The job input file "Job-1.inp" has been submitted for analysis.
#: Error in job Job-1: 17 elements have missing property definitions. The elements have been identified in element set ErrElemMissingSection.
#: Job Job-1: Analysis Input File Processor aborted due to errors.
o3 = session.openOdb(
    name='C:/Users/Administrator/Documents/learnFEM/Matlb Fea Codes repo/fea-codes-of-matlab/chapter04/problem4/abaqus/Job-1.odb')
#* OdbError: The .lck file for the output database 
#* C:/Users/Administrator/Documents/learnFEM/Matlb Fea Codes 
#* repo/fea-codes-of-matlab/chapter04/problem4/abaqus/Job-1.odb indicates that 
#* the Analysis Input File Processor is currently modifying the database.  The 
#* database cannot be opened at this time.
#: Error in job Job-1: Analysis Input File Processor exited with an error.
#: Job Job-1 aborted due to errors.
p = mdb.models['Model-1'].parts['Part-1']
session.viewports['Viewport: 1'].setValues(displayedObject=p)
session.viewports['Viewport: 1'].partDisplay.setValues(sectionAssignments=OFF, 
    engineeringFeatures=OFF, mesh=ON)
session.viewports['Viewport: 1'].partDisplay.meshOptions.setValues(
    meshTechnique=ON)
elemType1 = mesh.ElemType(elemCode=T2D2, elemLibrary=STANDARD)
p = mdb.models['Model-1'].parts['Part-1']
e = p.edges
edges = e.getSequenceFromMask(mask=('[#7 ]', ), )
pickedRegions =(edges, )
p.setElementType(regions=pickedRegions, elemTypes=(elemType1, ))
a = mdb.models['Model-1'].rootAssembly
a.regenerate()
session.viewports['Viewport: 1'].setValues(displayedObject=a)
mdb.jobs['Job-1'].submit(consistencyChecking=OFF)
#: The job input file "Job-1.inp" has been submitted for analysis.
#: The contents of viewport "Viewport: 1" have been copied to the clipboard.
#: Job Job-1: Analysis Input File Processor completed successfully.
#: The contents of viewport "Viewport: 1" have been copied to the clipboard.
#: The contents of viewport "Viewport: 1" have been copied to the clipboard.
#: The contents of viewport "Viewport: 1" have been copied to the clipboard.
#: Job Job-1: Abaqus/Standard completed successfully.
#: Job Job-1 completed successfully. 
o3 = session.openOdb(
    name='C:/Users/Administrator/Documents/learnFEM/Matlb Fea Codes repo/fea-codes-of-matlab/chapter04/problem4/abaqus/Job-1.odb')
#: Model: C:/Users/Administrator/Documents/learnFEM/Matlb Fea Codes repo/fea-codes-of-matlab/chapter04/problem4/abaqus/Job-1.odb
#: Number of Assemblies:         1
#: Number of Assembly instances: 0
#: Number of Part instances:     1
#: Number of Meshes:             1
#: Number of Element Sets:       3
#: Number of Node Sets:          5
#: Number of Steps:              1
session.viewports['Viewport: 1'].setValues(displayedObject=o3)
session.viewports['Viewport: 1'].makeCurrent()
session.viewports['Viewport: 1'].odbDisplay.display.setValues(plotState=(
    CONTOURS_ON_DEF, ))
#: The contents of viewport "Viewport: 1" have been copied to the clipboard.
#: The contents of viewport "Viewport: 1" have been copied to the clipboard.
#: The contents of viewport "Viewport: 1" have been copied to the clipboard.
#: The contents of viewport "Viewport: 1" have been copied to the clipboard.
#: The contents of viewport "Viewport: 1" have been copied to the clipboard.
session.viewports['Viewport: 1'].view.setValues(nearPlane=29.5926, 
    farPlane=50.4074, width=16.2532, height=8.40001, cameraPosition=(4.89438, 
    2.55595, 40), cameraTarget=(4.89438, 2.55595, 0))
session.viewports['Viewport: 1'].odbDisplay.display.setValues(plotState=(
    DEFORMED, ))
#: The contents of viewport "Viewport: 1" have been copied to the clipboard.
#: The contents of viewport "Viewport: 1" have been copied to the clipboard.
#: The contents of viewport "Viewport: 1" have been copied to the clipboard.
session.viewports['Viewport: 1'].view.setValues(nearPlane=26.7576, 
    farPlane=53.2424, width=49.6008, height=25.6348, cameraPosition=(13.7622, 
    0.72889, 40), cameraTarget=(13.7622, 0.72889, 0))
session.viewports['Viewport: 1'].odbDisplay.display.setValues(plotState=(
    UNDEFORMED, ))
session.viewports['Viewport: 1'].odbDisplay.display.setValues(plotState=(
    CONTOURS_ON_DEF, ))
#: The contents of viewport "Viewport: 1" have been copied to the clipboard.
#: The contents of viewport "Viewport: 1" have been copied to the clipboard.
session.viewports['Viewport: 1'].odbDisplay.setFrame(step=0, frame=7 )
session.viewports['Viewport: 1'].odbDisplay.setFrame(step=0, frame=7 )
session.viewports['Viewport: 1'].animationController.setValues(
    animationType=SCALE_FACTOR)
session.viewports['Viewport: 1'].animationController.play(duration=UNLIMITED)
session.viewports['Viewport: 1'].animationController.setValues(
    animationType=NONE)
p = mdb.models['Model-1'].parts['Part-1']
session.viewports['Viewport: 1'].setValues(displayedObject=p)
p = mdb.models['Model-1'].parts['Part-1']
e = p.edges
pickedRegions = e.getSequenceFromMask(mask=('[#7 ]', ), )
p.deleteMesh(regions=pickedRegions)
p = mdb.models['Model-1'].parts['Part-1']
e = p.edges
pickedEdges = e.getSequenceFromMask(mask=('[#7 ]', ), )
p.seedEdgeByNumber(edges=pickedEdges, number=1, constraint=FINER)
a1 = mdb.models['Model-1'].rootAssembly
a1.regenerate()
a = mdb.models['Model-1'].rootAssembly
session.viewports['Viewport: 1'].setValues(displayedObject=a)
a = mdb.models['Model-1'].rootAssembly
session.viewports['Viewport: 1'].setValues(displayedObject=a)
mdb.jobs['Job-1'].submit(consistencyChecking=OFF)
#: The job input file "Job-1.inp" has been submitted for analysis.
session.viewports['Viewport: 1'].assemblyDisplay.setValues(mesh=ON)
session.viewports['Viewport: 1'].assemblyDisplay.meshOptions.setValues(
    meshTechnique=ON)
p = mdb.models['Model-1'].parts['Part-1']
session.viewports['Viewport: 1'].setValues(displayedObject=p)
p = mdb.models['Model-1'].parts['Part-1']
p.generateMesh()
#: Error in job Job-1: in keyword *BOUNDARY, file "Job-1.inp", line 37: Unknown assembly node set SET-2
#: Error in job Job-1: in keyword *CLOAD, file "Job-1.inp", line 43: Unknown assembly set SET-1
#: Error in job Job-1: THIS MODEL HAS EITHER INCORRECT OR NO ELEMENT DEFINITIONS.
#: Job Job-1: Analysis Input File Processor aborted due to errors.
a1 = mdb.models['Model-1'].rootAssembly
a1.regenerate()
a = mdb.models['Model-1'].rootAssembly
session.viewports['Viewport: 1'].setValues(displayedObject=a)
session.viewports['Viewport: 1'].assemblyDisplay.setValues(mesh=OFF)
session.viewports['Viewport: 1'].assemblyDisplay.meshOptions.setValues(
    meshTechnique=OFF)
a = mdb.models['Model-1'].rootAssembly
session.viewports['Viewport: 1'].setValues(displayedObject=a)
mdb.jobs['Job-1'].submit(consistencyChecking=OFF)
#: Abaqus Error: Detected lock file Job-1.lck. Please confirm that no other applications are attempting to write to the output database associated with this job before removing the lock file and resubmitting.
#: Abaqus/Analysis exited with error(s).
#: The job input file "Job-1.inp" has been submitted for analysis.
#: Error in job Job-1: Analysis Input File Processor exited with an error.
#: Error in job Job-1: Analysis Input File Processor exited with an error.
#: Job Job-1 aborted due to errors.
#: Job Job-1 aborted due to errors.
session.viewports['Viewport: 1'].assemblyDisplay.setValues(mesh=ON)
session.viewports['Viewport: 1'].assemblyDisplay.meshOptions.setValues(
    meshTechnique=ON)
session.viewports['Viewport: 1'].assemblyDisplay.meshOptions.setValues(
    seeds=ON)
p = mdb.models['Model-1'].parts['Part-1']
session.viewports['Viewport: 1'].setValues(displayedObject=p)
session.viewports['Viewport: 1'].partDisplay.meshOptions.setValues(seeds=ON)
session.viewports['Viewport: 1'].view.setValues(nearPlane=16.9073, 
    farPlane=28.0165, width=25.4165, height=13.1812, viewOffsetX=10.2004, 
    viewOffsetY=-1.3714)
a = mdb.models['Model-1'].rootAssembly
session.viewports['Viewport: 1'].setValues(displayedObject=a)
session.viewports['Viewport: 1'].assemblyDisplay.setValues(mesh=OFF, loads=ON, 
    bcs=ON, predefinedFields=ON, connectors=ON)
session.viewports['Viewport: 1'].assemblyDisplay.meshOptions.setValues(
    meshTechnique=OFF, seeds=OFF)
session.viewports['Viewport: 1'].view.setValues(nearPlane=20.5534, 
    farPlane=36.0151, cameraPosition=(13.3879, 0.805256, 28.2843), 
    cameraTarget=(13.3879, 0.805256, 0))
session.viewports['Viewport: 1'].partDisplay.setValues(mesh=OFF)
session.viewports['Viewport: 1'].partDisplay.meshOptions.setValues(
    meshTechnique=OFF, seeds=OFF)
session.viewports['Viewport: 1'].partDisplay.geometryOptions.setValues(
    referenceRepresentation=ON)
p = mdb.models['Model-1'].parts['Part-1']
session.viewports['Viewport: 1'].setValues(displayedObject=p)
session.viewports['Viewport: 1'].view.setValues(session.views['Front'])
session.viewports['Viewport: 1'].partDisplay.setValues(sectionAssignments=ON, 
    engineeringFeatures=ON)
session.viewports['Viewport: 1'].partDisplay.geometryOptions.setValues(
    referenceRepresentation=OFF)
#: The contents of viewport "Viewport: 1" have been copied to the clipboard.
#: The contents of viewport "Viewport: 1" have been copied to the clipboard.
mdb.models['Model-1'].sections['Section-1'].setValues(material='Material-1', 
    area=0.002)
session.viewports['Viewport: 1'].partDisplay.setValues(renderBeamProfiles=ON)
session.viewports['Viewport: 1'].view.setValues(nearPlane=28.1757, 
    farPlane=28.3928, width=0.455731, height=0.235532, viewOffsetX=-4.86878, 
    viewOffsetY=-4.93592)
session.viewports['Viewport: 1'].view.setValues(nearPlane=27.2148, 
    farPlane=29.3136, width=0.440188, height=0.227499, cameraPosition=(3.43384, 
    6.33666, 28.2458), cameraUpVector=(0.258321, 0.96355, -0.069579), 
    cameraTarget=(6.09169, 3.60033, 0.219922), viewOffsetX=-4.70274, 
    viewOffsetY=-4.76759)
mdb.models['Model-1'].sections['Section-1'].setValues(material='Material-1', 
    area=2.0)
mdb.models['Model-1'].sections['Section-1'].setValues(material='Material-1', 
    area=0.02)
session.viewports['Viewport: 1'].view.setValues(nearPlane=24.65, 
    farPlane=31.879, width=9.66984, height=4.99759, viewOffsetX=-2.21867, 
    viewOffsetY=0.056035)
session.viewports['Viewport: 1'].view.setValues(nearPlane=24.7499, 
    farPlane=32.3429, width=9.70904, height=5.01785, cameraPosition=(-2.15738, 
    5.69187, 27.6823), cameraUpVector=(-0.650869, 0.73853, -0.175905), 
    cameraTarget=(5.51161, 5.96646, 0.458891), viewOffsetX=-2.22766, 
    viewOffsetY=0.0562622)
session.viewports['Viewport: 1'].view.setValues(nearPlane=21.8792, 
    farPlane=36.4847, width=8.58289, height=4.43583, cameraPosition=(-10.7459, 
    -5.31548, 22.4706), cameraUpVector=(-0.502696, 0.863452, 0.0417981), 
    cameraTarget=(5.28005, 5.02583, 1.58456), viewOffsetX=-1.96927, 
    viewOffsetY=0.0497363)
session.viewports['Viewport: 1'].view.setValues(nearPlane=22.0352, 
    farPlane=36.3286, width=8.6441, height=4.46746, cameraPosition=(-10.6206, 
    -5.56266, 22.4444), cameraUpVector=(-0.4308, 0.895374, 0.112769), 
    cameraTarget=(5.40535, 4.77865, 1.55832), viewOffsetX=-1.98331, 
    viewOffsetY=0.050091)
#: The contents of viewport "Viewport: 1" have been copied to the clipboard.
mdb.save()
#: The model database has been saved to "C:\Users\Administrator\Documents\learnFEM\Matlb Fea Codes repo\fea-codes-of-matlab\chapter04\problem4\abaqus\problem4.cae".
a = mdb.models['Model-1'].rootAssembly
session.viewports['Viewport: 1'].setValues(displayedObject=a)
session.viewports['Viewport: 1'].assemblyDisplay.setValues(loads=OFF, bcs=OFF, 
    predefinedFields=OFF, connectors=OFF, adaptiveMeshConstraints=ON)
mdb.models['Model-1'].steps['Step-1'].setValues(initialInc=1.0, maxInc=1.0)
mdb.save()
#: The model database has been saved to "C:\Users\Administrator\Documents\learnFEM\Matlb Fea Codes repo\fea-codes-of-matlab\chapter04\problem4\abaqus\problem4.cae".
session.viewports['Viewport: 1'].assemblyDisplay.setValues(loads=ON, bcs=ON, 
    predefinedFields=ON, connectors=ON, adaptiveMeshConstraints=OFF)
mdb.models['Model-1'].loads['Load-1'].setValues(cf2=-100.0, 
    distributionType=UNIFORM, field='')
#: The contents of viewport "Viewport: 1" have been copied to the clipboard.
session.viewports['Viewport: 1'].assemblyDisplay.setValues(mesh=ON, loads=OFF, 
    bcs=OFF, predefinedFields=OFF, connectors=OFF)
session.viewports['Viewport: 1'].assemblyDisplay.meshOptions.setValues(
    meshTechnique=ON, seeds=ON)
session.viewports['Viewport: 1'].assemblyDisplay.setValues(mesh=OFF)
session.viewports['Viewport: 1'].assemblyDisplay.meshOptions.setValues(
    meshTechnique=OFF, seeds=OFF)
mdb.jobs['Job-1'].submit(consistencyChecking=OFF)
#: The job input file "Job-1.inp" has been submitted for analysis.
#: Job Job-1: Analysis Input File Processor completed successfully.
#: Job Job-1: Abaqus/Standard completed successfully.
#: Job Job-1 completed successfully. 
o3 = session.openOdb(
    name='C:/Users/Administrator/Documents/learnFEM/Matlb Fea Codes repo/fea-codes-of-matlab/chapter04/problem4/abaqus/Job-1.odb')
#: Model: C:/Users/Administrator/Documents/learnFEM/Matlb Fea Codes repo/fea-codes-of-matlab/chapter04/problem4/abaqus/Job-1.odb
#: Number of Assemblies:         1
#: Number of Assembly instances: 0
#: Number of Part instances:     1
#: Number of Meshes:             1
#: Number of Element Sets:       3
#: Number of Node Sets:          5
#: Number of Steps:              1
session.viewports['Viewport: 1'].setValues(displayedObject=o3)
session.viewports['Viewport: 1'].makeCurrent()
session.viewports['Viewport: 1'].odbDisplay.display.setValues(plotState=(
    CONTOURS_ON_DEF, ))
session.viewports['Viewport: 1'].view.setValues(nearPlane=26.7576, 
    farPlane=53.2424, width=49.6007, height=25.6348, cameraPosition=(11.8548, 
    2.56176, 40), cameraTarget=(11.8548, 2.56176, 0))
session.viewports['Viewport: 1'].odbDisplay.display.setValues(plotState=(
    CONTOURS_ON_UNDEF, CONTOURS_ON_DEF, ))
#: The contents of viewport "Viewport: 1" have been copied to the clipboard.
session.viewports['Viewport: 1'].view.setValues(nearPlane=28.849, 
    farPlane=51.151, width=20.3165, height=10.5, cameraPosition=(5.30242, 
    1.63953, 40), cameraTarget=(5.30242, 1.63953, 0))
session.viewports['Viewport: 1'].odbDisplay.commonOptions.setValues(
    deformationScaling=UNIFORM, uniformScaleFactor=1)
#: The contents of viewport "Viewport: 1" have been copied to the clipboard.
#: The contents of viewport "Viewport: 1" have been copied to the clipboard.
session.viewports['Viewport: 1'].view.setValues(nearPlane=32.9189, 
    farPlane=47.0811, width=0.0523971, height=0.02708, cameraPosition=(
    0.0168159, 0.00261438, 40), cameraTarget=(0.0168159, 0.00261438, 0))
session.graphicsOptions.setValues(backgroundStyle=SOLID, 
    backgroundColor='#FFFFFF')
session.viewports['Viewport: 1'].view.setValues(nearPlane=25.1826, 
    farPlane=54.8174, width=42.3261, height=21.8751, cameraPosition=(10.0096, 
    2.37353, 40), cameraTarget=(10.0096, 2.37353, 0))
session.viewports['Viewport: 1'].view.setValues(session.views['Front'])
#: The contents of viewport "Viewport: 1" have been copied to the clipboard.
#: The contents of viewport "Viewport: 1" have been copied to the clipboard.
session.viewports['Viewport: 1'].view.setValues(nearPlane=28.283, 
    farPlane=51.7223, width=25.3989, height=13.1267, cameraPosition=(6.74235, 
    2.80132, 40.0026), cameraTarget=(6.74235, 2.80132, 0))
#: The contents of viewport "Viewport: 1" have been copied to the clipboard.
#: The contents of viewport "Viewport: 1" have been copied to the clipboard.
#: The contents of viewport "Viewport: 1" have been copied to the clipboard.
#: The contents of viewport "Viewport: 1" have been copied to the clipboard.
#: The contents of viewport "Viewport: 1" have been copied to the clipboard.
session.viewports['Viewport: 1'].odbDisplay.setPrimaryVariable(
    variableLabel='U', outputPosition=NODAL, refinement=(INVARIANT, 
    'Magnitude'), )
p = mdb.models['Model-1'].parts['Part-1']
session.viewports['Viewport: 1'].setValues(displayedObject=p)
mdb.models['Model-1'].sections['Section-1'].setValues(material='Material-1', 
    area=2.0)
a = mdb.models['Model-1'].rootAssembly
session.viewports['Viewport: 1'].setValues(displayedObject=a)
session.viewports['Viewport: 1'].assemblyDisplay.setValues(loads=ON, bcs=ON, 
    predefinedFields=ON, connectors=ON)
mdb.models['Model-1'].loads['Load-1'].setValues(cf2=-10000.0, 
    distributionType=UNIFORM, field='')
session.viewports['Viewport: 1'].assemblyDisplay.setValues(loads=OFF, bcs=OFF, 
    predefinedFields=OFF, connectors=OFF)
mdb.Job(name='Job-2', model='Model-1', description='', type=ANALYSIS, 
    atTime=None, waitMinutes=0, waitHours=0, queue=None, memory=90, 
    memoryUnits=PERCENTAGE, getMemoryFromAnalysis=True, 
    explicitPrecision=SINGLE, nodalOutputPrecision=SINGLE, echoPrint=OFF, 
    modelPrint=OFF, contactPrint=OFF, historyPrint=OFF, userSubroutine='', 
    scratch='', resultsFormat=ODB, multiprocessingMode=DEFAULT, numCpus=1, 
    numGPUs=0)
mdb.jobs['Job-2'].submit(consistencyChecking=OFF)
#: The job input file "Job-2.inp" has been submitted for analysis.
#: Job Job-2: Analysis Input File Processor completed successfully.
#: Job Job-2: Abaqus/Standard completed successfully.
#: Job Job-2 completed successfully. 
#: The contents of viewport "Viewport: 1" have been copied to the clipboard.
session.viewports['Viewport: 1'].setValues(
    displayedObject=session.odbs['C:/Users/Administrator/Documents/learnFEM/Matlb Fea Codes repo/fea-codes-of-matlab/chapter04/problem4/abaqus/Job-1.odb'])
o3 = session.openOdb(
    name='C:/Users/Administrator/Documents/learnFEM/Matlb Fea Codes repo/fea-codes-of-matlab/chapter04/problem4/abaqus/Job-2.odb')
#: Model: C:/Users/Administrator/Documents/learnFEM/Matlb Fea Codes repo/fea-codes-of-matlab/chapter04/problem4/abaqus/Job-2.odb
#: Number of Assemblies:         1
#: Number of Assembly instances: 0
#: Number of Part instances:     1
#: Number of Meshes:             1
#: Number of Element Sets:       3
#: Number of Node Sets:          5
#: Number of Steps:              1
session.viewports['Viewport: 1'].setValues(displayedObject=o3)
session.viewports['Viewport: 1'].makeCurrent()
session.viewports['Viewport: 1'].odbDisplay.display.setValues(plotState=(
    CONTOURS_ON_UNDEF, CONTOURS_ON_DEF, ))
session.viewports['Viewport: 1'].view.setValues(nearPlane=27.1191, 
    farPlane=52.8809, width=49.6007, height=25.6348, cameraPosition=(9.7883, 
    3.6735, 40), cameraTarget=(9.7883, 3.6735, 0))
session.viewports['Viewport: 1'].odbDisplay.commonOptions.setValues(
    deformationScaling=AUTO)
session.viewports['Viewport: 1'].view.setValues(nearPlane=27.9195, 
    farPlane=52.0805, width=25.3956, height=13.125, cameraPosition=(4.9761, 
    2.36514, 40), cameraTarget=(4.9761, 2.36514, 0))
session.viewports['Viewport: 1'].odbDisplay.setPrimaryVariable(
    variableLabel='U', outputPosition=NODAL, refinement=(INVARIANT, 
    'Magnitude'), )
session.viewports['Viewport: 1'].view.setValues(nearPlane=28.849, 
    width=31.7445, height=16.4063, cameraPosition=(8.47252, 3.05692, 40), 
    cameraTarget=(8.47252, 3.05692, 0))
mdb.save()
#: The model database has been saved to "C:\Users\Administrator\Documents\learnFEM\Matlb Fea Codes repo\fea-codes-of-matlab\chapter04\problem4\abaqus\problem4.cae".
session.viewports['Viewport: 1'].partDisplay.setValues(sectionAssignments=OFF, 
    engineeringFeatures=OFF)
session.viewports['Viewport: 1'].partDisplay.geometryOptions.setValues(
    referenceRepresentation=ON)
p = mdb.models['Model-1'].parts['Part-1']
session.viewports['Viewport: 1'].setValues(displayedObject=p)
session.viewports['Viewport: 1'].partDisplay.setValues(sectionAssignments=ON, 
    engineeringFeatures=ON)
session.viewports['Viewport: 1'].partDisplay.geometryOptions.setValues(
    referenceRepresentation=OFF)
#: The contents of viewport "Viewport: 1" have been copied to the clipboard.
#: The contents of viewport "Viewport: 1" have been copied to the clipboard.
odb = session.odbs['C:/Users/Administrator/Documents/learnFEM/Matlb Fea Codes repo/fea-codes-of-matlab/chapter04/problem4/abaqus/Job-2.odb']
session.viewports['Viewport: 1'].setValues(displayedObject=odb)
session.viewports['Viewport: 1'].odbDisplay.setPrimaryVariable(
    variableLabel='RF', outputPosition=NODAL, refinement=(INVARIANT, 
    'Magnitude'), )
session.viewports['Viewport: 1'].odbDisplay.contourOptions.setValues(
    contourStyle=CONTINUOUS, maxValue=7928.93, minValue=0)
session.viewports['Viewport: 1'].view.setValues(farPlane=52.0805, 
    width=39.6806, height=20.5078, cameraPosition=(11.5516, 4.64564, 40), 
    cameraTarget=(11.5516, 4.64564, 0))
session.viewports['Viewport: 1'].view.setValues(nearPlane=21.2205, 
    farPlane=58.7795, width=96.8765, height=50.068, cameraPosition=(8.95874, 
    0.656319, 40), cameraTarget=(8.95874, 0.656319, 0))
odb = session.odbs['C:/Users/Administrator/Documents/learnFEM/Matlb Fea Codes repo/fea-codes-of-matlab/chapter04/problem4/abaqus/Job-2.odb']
session.xyDataListFromField(odb=odb, outputPosition=NODAL, variable=(('CF', 
    NODAL, ((COMPONENT, 'CF1'), (COMPONENT, 'CF2'), )), ), nodePick=((
    'PART-1-1', 4, ('[#f ]', )), ), )
xyp = session.XYPlot('XYPlot-1')
chartName = xyp.charts.keys()[0]
chart = xyp.charts[chartName]
xy1 = session.xyDataObjects['CF:CF1 PI: PART-1-1 N: 1']
c1 = session.Curve(xyData=xy1)
chart.setValues(curvesToPlot=(c1, ), )
session.charts[chartName].autoColor(lines=True, symbols=True)
session.viewports['Viewport: 1'].setValues(displayedObject=xyp)
xyp = session.xyPlots['XYPlot-1']
chartName = xyp.charts.keys()[0]
chart = xyp.charts[chartName]
xy1 = session.xyDataObjects['CF:CF1 PI: PART-1-1 N: 2']
c1 = session.Curve(xyData=xy1)
chart.setValues(curvesToPlot=(c1, ), )
session.charts[chartName].autoColor(lines=True, symbols=True)
xyp = session.xyPlots['XYPlot-1']
chartName = xyp.charts.keys()[0]
chart = xyp.charts[chartName]
xy1 = session.xyDataObjects['CF:CF1 PI: PART-1-1 N: 3']
c1 = session.Curve(xyData=xy1)
chart.setValues(curvesToPlot=(c1, ), )
session.charts[chartName].autoColor(lines=True, symbols=True)
xyp = session.xyPlots['XYPlot-1']
chartName = xyp.charts.keys()[0]
chart = xyp.charts[chartName]
xy1 = session.xyDataObjects['CF:CF1 PI: PART-1-1 N: 4']
c1 = session.Curve(xyData=xy1)
chart.setValues(curvesToPlot=(c1, ), )
session.charts[chartName].autoColor(lines=True, symbols=True)
xyp = session.xyPlots['XYPlot-1']
chartName = xyp.charts.keys()[0]
chart = xyp.charts[chartName]
xy1 = session.xyDataObjects['CF:CF2 PI: PART-1-1 N: 1']
c1 = session.Curve(xyData=xy1)
chart.setValues(curvesToPlot=(c1, ), )
session.charts[chartName].autoColor(lines=True, symbols=True)
odb = session.odbs['C:/Users/Administrator/Documents/learnFEM/Matlb Fea Codes repo/fea-codes-of-matlab/chapter04/problem4/abaqus/Job-2.odb']
session.viewports['Viewport: 1'].setValues(displayedObject=odb)
session.viewports['Viewport: 1'].odbDisplay.display.setValues(plotState=(
    CONTOURS_ON_UNDEF, CONTOURS_ON_DEF, ))
session.viewports['Viewport: 1'].view.setValues(nearPlane=25.3052, 
    farPlane=54.6948, width=39.6806, height=20.5078, cameraPosition=(10.4691, 
    2.65723, 40), cameraTarget=(10.4691, 2.65723, 0))
session.viewports['Viewport: 1'].odbDisplay.display.setValues(plotState=(
    CONTOURS_ON_DEF, ))
session.viewports['Viewport: 1'].view.setValues(nearPlane=23.4898, 
    farPlane=56.5102, width=49.6008, height=25.6348, cameraPosition=(16.6139, 
    6.99246, 40), cameraTarget=(16.6139, 6.99246, 0))
p = mdb.models['Model-1'].parts['Part-1']
session.viewports['Viewport: 1'].setValues(displayedObject=p)
odb = session.odbs['C:/Users/Administrator/Documents/learnFEM/Matlb Fea Codes repo/fea-codes-of-matlab/chapter04/problem4/abaqus/Job-2.odb']
session.viewports['Viewport: 1'].setValues(displayedObject=odb)
session.viewports['Viewport: 1'].odbDisplay.setPrimaryVariable(
    variableLabel='U', outputPosition=NODAL, refinement=(INVARIANT, 
    'Magnitude'), )
session.viewports['Viewport: 1'].odbDisplay.setPrimaryVariable(
    variableLabel='U', outputPosition=NODAL, refinement=(COMPONENT, 'U1'), )
#: The contents of viewport "Viewport: 1" have been copied to the clipboard.
#: The contents of viewport "Viewport: 1" have been copied to the clipboard.
#: The contents of viewport "Viewport: 1" have been copied to the clipboard.
#: The contents of viewport "Viewport: 1" have been copied to the clipboard.
#: The contents of viewport "Viewport: 1" have been copied to the clipboard.
#: The contents of viewport "Viewport: 1" have been copied to the clipboard.
#: The contents of viewport "Viewport: 1" have been copied to the clipboard.
#: The contents of viewport "Viewport: 1" have been copied to the clipboard.
#: The contents of viewport "Viewport: 1" have been copied to the clipboard.
session.viewports['Viewport: 1'].view.setValues(nearPlane=23.4898, 
    farPlane=56.5102, width=77.5012, height=40.0544, cameraPosition=(16.2297, 
    3.77875, 40), cameraTarget=(16.2297, 3.77875, 0))
session.viewports['Viewport: 1'].odbDisplay.superimposeOptions.setValues(
    nodeLabels=ON)
#: The contents of viewport "Viewport: 1" have been copied to the clipboard.
session.viewports['Viewport: 1'].odbDisplay.superimposeOptions.setValues(
    nodeLabelColor='#0000FF')
session.viewports['Viewport: 1'].view.setValues(nearPlane=28.849, 
    farPlane=51.151, width=20.3165, height=10.5, cameraPosition=(6.22732, 
    1.25378, 40), cameraTarget=(6.22732, 1.25378, 0))
session.viewports['Viewport: 1'].view.setProjection(projection=PARALLEL)
session.viewports['Viewport: 1'].view.setProjection(projection=PARALLEL)
session.viewports['Viewport: 1'].odbDisplay.setPrimaryVariable(
    variableLabel='U', outputPosition=NODAL, refinement=(INVARIANT, 
    'Magnitude'), )
session.viewports['Viewport: 1'].view.setValues(nearPlane=28.849, 
    farPlane=51.151, width=31.7445, height=16.4063, cameraPosition=(9.0204, 
    1.97412, 40), cameraTarget=(9.0204, 1.97412, 0))
session.viewports['Viewport: 1'].odbDisplay.display.setValues(plotState=(
    UNDEFORMED, ))
session.viewports['Viewport: 1'].view.setValues(nearPlane=29.2109, 
    farPlane=50.7891, width=20.3165, height=10.5, cameraPosition=(6.83926, 
    3.08581, 40), cameraTarget=(6.83926, 3.08581, 0))
session.viewports['Viewport: 1'].odbDisplay.superimposeOptions.setValues(
    renderStyle=WIREFRAME)
session.viewports['Viewport: 1'].odbDisplay.display.setValues(plotState=(
    CONTOURS_ON_DEF, ))
session.viewports['Viewport: 1'].odbDisplay.display.setValues(plotState=(
    DEFORMED, ))
session.viewports['Viewport: 1'].odbDisplay.display.setValues(plotState=(
    UNDEFORMED, ))
session.viewports['Viewport: 1'].odbDisplay.commonOptions.setValues(
    nodeLabels=ON, nodeLabelColor='#0000FF')
session.viewports['Viewport: 1'].view.setValues(nearPlane=27.1195, 
    farPlane=52.8805, width=49.6008, height=25.6348, cameraPosition=(14.2737, 
    4.89238, 40), cameraTarget=(14.2737, 4.89238, 0))
session.viewports['Viewport: 1'].odbDisplay.setPrimaryVariable(
    variableLabel='U', outputPosition=NODAL, refinement=(COMPONENT, 'U2'), )
session.viewports['Viewport: 1'].odbDisplay.display.setValues(
    plotState=CONTOURS_ON_DEF)
session.viewports['Viewport: 1'].view.setValues(nearPlane=26.7576, 
    farPlane=53.2424, width=49.6008, height=25.6348, cameraPosition=(9.49742, 
    3.06734, 40), cameraTarget=(9.49742, 3.06734, 0))
#: The contents of viewport "Viewport: 1" have been copied to the clipboard.
#: The contents of viewport "Viewport: 1" have been copied to the clipboard.
session.viewports['Viewport: 1'].view.setProjection(projection=PARALLEL)
session.viewports['Viewport: 1'].view.setValues(session.views['Front'])
session.viewports['Viewport: 1'].view.fitView()
session.viewports['Viewport: 1'].view.setValues(nearPlane=31.3427, 
    farPlane=52.7525, width=27.9351, height=14.4375, cameraPosition=(5.87508, 
    4.0541, 42.0476), cameraTarget=(5.87508, 4.0541, 0))
session.viewports['Viewport: 1'].view.setValues(nearPlane=30.0741, 
    farPlane=54.2018, cameraPosition=(9.79143, 3.22012, 41.8565), 
    cameraUpVector=(-0.0100405, 0.999732, 0.0208589))
session.viewports['Viewport: 1'].view.setValues(session.views['Front'])
session.viewports['Viewport: 1'].odbDisplay.display.setValues(plotState=(
    UNDEFORMED, ))
session.viewports['Viewport: 1'].odbDisplay.display.setValues(plotState=(
    UNDEFORMED, CONTOURS_ON_DEF, ))
session.viewports['Viewport: 1'].view.setValues(nearPlane=29.5023, 
    farPlane=54.5929, width=27.9351, height=14.4375, cameraPosition=(7.19701, 
    4.48825, 42.0476), cameraTarget=(7.19701, 4.48825, 0))
session.viewports['Viewport: 1'].odbDisplay.commonOptions.setValues(
    deformationScaling=UNIFORM, uniformScaleFactor=100)
session.viewports['Viewport: 1'].view.setValues(nearPlane=28.5393, 
    farPlane=55.5559, width=34.9189, height=18.0469, cameraPosition=(8.7051, 
    4.16334, 42.0476), cameraTarget=(8.7051, 4.16334, 0))
session.viewports['Viewport: 1'].odbDisplay.display.setValues(plotState=(
    CONTOURS_ON_DEF, ))
session.viewports['Viewport: 1'].odbDisplay.setPrimaryVariable(
    variableLabel='U', outputPosition=NODAL, refinement=(INVARIANT, 
    'Magnitude'), )
session.viewports['Viewport: 1'].view.setValues(width=27.9351, height=14.4375, 
    cameraPosition=(8.02144, 2.86782, 42.0476), cameraTarget=(8.02144, 2.86782, 
    0))
session.viewports['Viewport: 1'].odbDisplay.setPrimaryVariable(
    variableLabel='U', outputPosition=NODAL, refinement=(COMPONENT, 'U1'), )
session.viewports['Viewport: 1'].view.setValues(nearPlane=28.5393, 
    farPlane=55.5559, width=34.9189, height=18.0469, cameraPosition=(8.25284, 
    3.69032, 42.0476), cameraTarget=(8.25284, 3.69032, 0))
session.viewports['Viewport: 1'].odbDisplay.setPrimaryVariable(
    variableLabel='U', outputPosition=NODAL, refinement=(INVARIANT, 
    'Magnitude'), )
session.viewports['Viewport: 1'].odbDisplay.display.setValues(plotState=(
    CONTOURS_ON_UNDEF, ))
#: The contents of viewport "Viewport: 1" have been copied to the clipboard.
session.viewports['Viewport: 1'].odbDisplay.display.setValues(plotState=(
    CONTOURS_ON_UNDEF, CONTOURS_ON_DEF, ))
session.viewports['Viewport: 1'].view.setValues(nearPlane=30.8398, 
    farPlane=53.2553, width=34.9189, height=18.0469, cameraPosition=(10.3854, 
    4.28336, 42.0476), cameraTarget=(10.3854, 4.28336, 0))
session.viewports['Viewport: 1'].odbDisplay.commonOptions.setValues(
    deformationScaling=AUTO)
session.viewports['Viewport: 1'].view.setValues(nearPlane=28.2242, 
    farPlane=55.8709, cameraPosition=(7.88365, 2.43046, 42.0476), 
    cameraTarget=(7.88365, 2.43046, 0))
session.viewports['Viewport: 1'].viewportAnnotationOptions.setValues(
    legendBox=OFF)
session.viewports['Viewport: 1'].odbDisplay.setPrimaryVariable(
    variableLabel='U', outputPosition=NODAL, refinement=(COMPONENT, 'U1'), )
session.viewports['Viewport: 1'].odbDisplay.display.setValues(plotState=(
    CONTOURS_ON_DEF, ))
#: The selected probe values were written to file "C:/Users/Administrator/Documents/learnFEM/Matlb Fea Codes repo/fea-codes-of-matlab/chapter04/problem4/abaqus/U_and_RF".
session.viewports['Viewport: 1'].odbDisplay.setPrimaryVariable(
    variableLabel='U', outputPosition=NODAL, refinement=(COMPONENT, 'U2'), )
#: The selected probe values were appended to file "C:/Users/Administrator/Documents/learnFEM/Matlb Fea Codes repo/fea-codes-of-matlab/chapter04/problem4/abaqus/U_and_RF".
session.viewports['Viewport: 1'].view.setValues(nearPlane=28.2242, 
    farPlane=55.8709, width=54.5609, height=28.1983, cameraPosition=(3.21827, 
    4.52344, 42.0476), cameraTarget=(3.21827, 4.52344, 0))
session.viewports['Viewport: 1'].odbDisplay.setPrimaryVariable(
    variableLabel='RF', outputPosition=NODAL, refinement=(INVARIANT, 
    'Magnitude'), )
session.viewports['Viewport: 1'].odbDisplay.setPrimaryVariable(
    variableLabel='RF', outputPosition=NODAL, refinement=(COMPONENT, 'RF1'), )
#: The selected probe values were appended to file "C:/Users/Administrator/Documents/learnFEM/Matlb Fea Codes repo/fea-codes-of-matlab/chapter04/problem4/abaqus/U_and_RF".
session.viewports['Viewport: 1'].odbDisplay.setPrimaryVariable(
    variableLabel='RF', outputPosition=NODAL, refinement=(COMPONENT, 'RF2'), )
#: The selected probe values were appended to file "C:/Users/Administrator/Documents/learnFEM/Matlb Fea Codes repo/fea-codes-of-matlab/chapter04/problem4/abaqus/U_and_RF".
#: The selected probe values were written to file "C:/Users/Administrator/Documents/learnFEM/Matlb Fea Codes repo/fea-codes-of-matlab/chapter04/problem4/abaqus/U_and_RF".
session.viewports['Viewport: 1'].odbDisplay.setPrimaryVariable(
    variableLabel='U', outputPosition=NODAL, refinement=(INVARIANT, 
    'Magnitude'), )
